<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<button id="btn01">按钮</button>
<table>

</table>
</body>
<script type="text/javascript">
    window.onload = function () {
        var btn01 = document.getElementById("btn01")
        btn01.onclick = function () {
            text1();
        }
    }
</script>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
</html>